-- GENERATED SPELL FOR [Warmaul Reaver] --


function spell0_17138(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17138', 589, 1)
end

function Sorts_17138(pUnit, Event)
local choix_sorts_17138 = math.random(0, 0)
if choix_sorts_17138 == 0 then
pUnit:RegisterEvent('spell0_17138', 1, 1)
end
end

function mob17138_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17138', math.random(1500, 3000), 1)
end

function mob17138_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17138_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17138_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17138, 1, 'mob17138_Action')
RegisterUnitEvent(17138, 2, 'mob17138_Leave')
RegisterUnitEvent(17138, 3, 'mob17138_Kill')
RegisterUnitEvent(17138, 4, 'mob17138_Die')
